package com.jsu.springboot_medicine.service;

import com.github.pagehelper.PageInfo;
import com.jsu.springboot_medicine.entity.User;

import java.util.List;

/**
 * @author js
 * @name UserService
 * @Date 2023/9/25 15:41
 */
public interface UserService {
    List<User> selectAll();

    // 根据用户名查询
    User selectByUserName(String userName);

    // 根据id查询
    User selectById(int id);

    //    修改用户信息
    int updateByPrimaryKeySelective(User user);

    List<User> selectByName(String name);

    //    删除用户信息
    int deleteByPrimaryKey(String userName);

    //增加用户
    void add(User user);

    PageInfo<User> findPage(Integer pageNum);

    PageInfo<User> findPage(User user, Integer pageNum, Integer pageSize);
}
